package day3;

import org.junit.Test;

import java.util.Arrays;

public class MemmoryDemo {

    @Test
    public void test01() {
        int a = 0;
        int b = 1;
        changeValue(a, b);
        System.out.println(a + " : " + b);

        int[] arr = {1, 2, 3, 4, 5};
        changeData(arr);
        System.out.println(arr[0]);
    }

    public void changeValue(int a, int b) {
        a = 100;
        b = 200;
    }

    public void changeData(int[] arr) {
        arr[0] = 99;

    }
}